<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

if ( !function_exists('init_vars'))
{
	function init_vars($title="",$controller){
		if($title!=""){
			$data['page_title']="Chiro Echo ".date("Y")." || " . $title;
		} else {
			$data['page_title']="Chiro Echo ".date("Y");
		}
		$data['title']=$title;
		$data['keywords']="Chiro, Echo, Jongens, Aartselaar, Jeugdbeweging";
		$data['description']="De website van Chiro Echo Aartselaar. Een super toffe jeugdbeweging in Aartselaar!";	
		 
		$data['js']= script_import(site_url("js/jquery/jquery.js"));
		$data['css'] = "";
		$data['js'].= script_import(site_url("js/main.js"));
		$data['css'].= css_import(site_url("css/main.css"));
		
		$data['mainMenu'][] = array("url" => site_url("main/info"), "name" =>"Info");
		$data['mainMenu'][] = array("url" => site_url("main/nieuws"), "name" =>"Nieuws");
		$data['mainMenu'][] = array("url" => site_url("main/events"), "name" =>"Events");
		$data['mainMenu'][] = array("url" => site_url("main/contact"), "name" =>"Contact");
		$data['mainMenu'][] = array("url" => site_url("main/verhuur"), "name" =>"Verhuur");	
		
		
		$tmp = array("url" => site_url("main/afdelingen"), "name" =>"Afdelingen");
		$tmp['subMenu'][] = array("url" => site_url("main/afdelingen/speelclub"), "name" =>"Speelclub");
		$tmp['subMenu'][] = array("url" => site_url("main/afdelingen/rakkers"), "name" =>"Rakkers");
		$tmp['subMenu'][] = array("url" => site_url("main/afdelingen/toppers"), "name" =>"Toppers");
		$tmp['subMenu'][] = array("url" => site_url("main/afdelingen/kerels"), "name" =>"Kerels");
		$tmp['subMenu'][] = array("url" => site_url("main/afdelingen/aspiranten"), "name" =>"Aspiranten");
		$data['subMenu']['subMenu'] = $tmp;
		
		$data['subMenu'][] = array("url" => site_url("main/joekel"), "name" =>"Joekel");
		$data['subMenu'][] = array("url" => site_url("fotos"), "name" =>"fotos");
		$data['subMenu'][] = array("url" => site_url("main/deoudebarak"), "name" =>"De oude barak");
		$data['subMenu'][] = array("url" => site_url("main/leiding"), "name" =>"Leiding");
		
		return $data;
	}
}
if (!function_exists('script_import')){
	function script_import($src){
		return "<script type=\"text/javascript\" src=\"".$src."\"></script>\n";
	}
}
if (!function_exists('css_import')){
	function css_import($src){
		return "<link rel=\"stylesheet\" href=\"".$src."\" type=\"text/css\" media=\"screen\" /> \n";
	}
}
/* Location: ./application/helpers/init_vars_helper.php */


